import request from '@/api/request.js'

// 查询我的资产
export async function doVisAcctBalance(params) {
	return request('/wallet/doVisAcctBalance', params)
}

// 银行卡数据
export async function getMyWalletInfo(params) {
	return request('/wallet/getMyWalletInfo')
}

// 银行短信
export async function getBankVerificationCode(params) {
	return request('/wallet/getBankVerificationCode', params, 'post')
}

// 开通钱包
export async function openWallet(params) {
	return request('/wallet/add', params, 'post')
}

// 换绑钱包
export async function updateWallet(params) {
	return request('/wallet/visAcctBinding', params, 'post')
}

// 交易记录
export async function doVisTransferQry(params) {
	return request('/wallet/doVisTransferQry', params)
}

// 获取银行类型Logo/名称
export async function getBankType(params) {
	return request('/wallet/getBankType', params)
}

// 修改绑定账户信息
export async function doVisAcctBinding(params) {
	return request('/wallet/doVisAcctBinding', params, 'post')
}

// 获取验证码
export async function doVisGetOTP(params) {
	return request('/wallet/doVisGetOTP', params)
}

// 提现
export async function doVisTransferOut(params) {
	return request('/wallet/doVisTransferOut', params, 'post')
}
